/* -------------------------------- 

Modules - reusable parts of our design

-------------------------------- */

.img-replace {
	/* replace text with an image */
	display: inline-block;
	overflow: hidden;
	text-indent: 100%;
	color: transparent;
	white-space: nowrap;
}


/* -------------------------------- 

Main components 

-------------------------------- */
.cd-popup-trigger {
	position: fixed;
	bottom: 0;
	display: block;
	width: 100%;
	height: 1.1733rem;
	line-height: 1.1733rem;
	margin: 0 auto;
	text-align: center;
	color: #FFF;
	font-size: 0.3733rem;
	text-transform: uppercase;
	background: #c7000a;
}


/* -------------------------------- 

xpopup 

-------------------------------- */

.cd-popup {
	position: fixed;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	-webkit-transition: opacity 0.3s 0s, visibility 0s 0.3s;
	-moz-transition: opacity 0.3s 0s, visibility 0s 0.3s;
	transition: opacity 0.3s 0s, visibility 0s 0.3s;
}

.cd-popup.is-visible {
	opacity: 1;
	visibility: visible;
	-webkit-transition: opacity 0.3s 0s, visibility 0s 0s;
	-moz-transition: opacity 0.3s 0s, visibility 0s 0s;
	transition: opacity 0.3s 0s, visibility 0s 0s;
}

.cd-popup-container {
	position: relative;
	width: 90%;
	max-width: 90%;
	margin: 50% auto;
	background: #FFF;
	text-align: center;
	/* Force Hardware Acceleration in WebKit */
	-webkit-backface-visibility: hidden;
	-webkit-transition-property: -webkit-transform;
	-moz-transition-property: -moz-transform;
	transition-property: transform;
	-webkit-transition-duration: 0.3s;
	-moz-transition-duration: 0.3s;
	transition-duration: 0.3s;
}

.cd-popup-container p {
	font-size: 0.4266rem;
	padding: 3em 1em;
}

.cd-popup-container .cd-buttons:after {
	content: "";
	display: table;
	clear: both;
}

.cd-popup-container .cd-buttons li {
	float: left;
	width: 50%;
}

.cd-popup-container .cd-buttons a {
	display: block;
	height: 1.6rem;
	line-height: 1.6rem;
	text-transform: uppercase;
	font-size: 0.3733rem;
	color: #FFF;
	-webkit-transition: background-color 0.2s;
	-moz-transition: background-color 0.2s;
	transition: background-color 0.2s;
}

.no-touch .cd-popup-container .cd-buttons li:first-child a:hover,
.cd-popup-container .cd-buttons li:first-child a {
	background: #c7000a;
	color: #fff;
}

.no-touch .cd-popup-container .cd-buttons li:last-child a:hover,
.cd-popup-container .cd-buttons li:last-child a {
	border-top: 1px solid #c7000a;
	background: #fff;
	color: #c7000a;
}

.cd-popup-container .cd-popup-close {
	position: absolute;
	top: 0.213rem;
	right: 0.213rem;
	width: 0.8rem;
	height: 0.8rem;
}

.cd-popup-container .cd-popup-close::before,
.cd-popup-container .cd-popup-close::after {
	content: '';
	position: absolute;
	top: 0.32rem;
	width: 0.3733rem;
	height: 0.08rem;
	background-color: #8f9cb5;
}

.cd-popup-container .cd-popup-close::before {
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
	left: 0.213rem;
}

.cd-popup-container .cd-popup-close::after {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
	right: 0.213rem;
}

.is-visible .cd-popup-container {
	-webkit-transform: translateY(0);
	-moz-transform: translateY(0);
	-ms-transform: translateY(0);
	-o-transform: translateY(0);
	transform: translateY(0);
}